#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void print(int z){
	int x, y;
	for (x = 1; x <= z; x++) {
		for (y = 1; y <= x; y++)
			printf("%d*%d=%d  ", x, y, x * y);
		printf("\n");
	}
}
int main() {
	int ret;
	scanf("%d", &ret);
	print(ret);
	return 0;
}